//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        //TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
        // to see how IntelliJ IDEA suggests fixing it.
        System.out.println("Hello and welcome!");

        Component L2 = new ComponentComposite("L2");
        Component leaf3_1 = new ComponentLeaf("L3_1");
        L2.addChild(leaf3_1);
        L2.addChild(new ComponentLeaf("L3_2"));
        Component L1 = new ComponentComposite("L1");
        L1.addChild(L2);
        L1.addChild(new ComponentLeaf("L2_2"));
        Component top = new ComponentComposite("Top");
        top.addChild(L1);
        top.addChild(new ComponentLeaf("L1_2"));
        top.addChild(new ComponentLeaf("L1_3"));

        L2.operation();

    }
}